package cn._2vin.user.bingxuexiehuione.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn._2vin.admin.bean.LogBean;
import cn._2vin.common.controller.service.CommonService;
import cn._2vin.user.bean.ImgUrl;
import cn._2vin.user.bingxuexiehuione.persistence.ImgUrlMapper;




@Service
public class ImgUrlService extends CommonService{
	
	@Autowired
	private ImgUrlMapper imgUrlMapper;
	public List<ImgUrl> selectlistImgUrl(String username){
		return imgUrlMapper.selectlistImgUrl(username);
		
	}
	
	public List<ImgUrl> selectImgUrl_ID(String id){
		return imgUrlMapper.selectImgUrl_ID(id);
	}
	/**
	 * 插入日志
	 * @param bean
	 */
	@Transactional(rollbackFor=Exception.class)
	public void insertImgUrl(ImgUrl bean) {
		imgUrlMapper.insertImgUrl(bean);;
	}
	/**
	 * 添加权限角色，添加之后插入权限角色中间表
	 * @param bean
	 */
	@Transactional(rollbackFor = Exception.class)
	public void insert(ImgUrl bean) {
		imgUrlMapper.insert(bean);
	}
}
